#include "RegisterHandler.h"

#include <iostream>

using namespace resip;
using namespace std;


RegisterHandler::RegisterHandler() : m_done(false)
{
	initialize();
}

RegisterHandler::~RegisterHandler()
{
	cleanup();
}

void RegisterHandler::initialize()
{
}

void RegisterHandler::cleanup()
{
}

void RegisterHandler::onFailure(ClientRegistrationHandle h, const SipMessage &response)
{
	cout << endl << ">>CLIENT: Registration failed" << endl;
	m_done = true;
}

void RegisterHandler::onRemoved(ClientRegistrationHandle h, const SipMessage &respons)
{
}

int RegisterHandler::onRequestRetry(ClientRegistrationHandle h, int retrySeconds, const SipMessage &respons)
{
	return -1;
}

void RegisterHandler::onSuccess(ClientRegistrationHandle h, const SipMessage &respons)
{
	cout << endl << ">>CLIENT: Registration succesfull" << endl;
	m_done = true;
}